package com.yhj.wchat.entity.po;

import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yhj.wchat.mj.DateTimePatternEnum;
import com.yhj.wchat.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;


/**
 * 
 */
public class QunInfo implements Serializable {


	/**
	 * 群ID
	 */
	private String qunId;

	/**
	 * 群号
	 */
	private String qunNo;

	/**
	 * 群名称
	 */
	private String qunName;

	/**
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;

	/**
	 * 创建者ID
	 */
	private String createUserId;

	/**
	 * 群头像
	 */
	private String avator;

	/**
	 * 群状态
	 */
	private Integer status;

	/**
	 * 群简介
	 */
	private String descrption;


	public void setQunId(String qunId){
		this.qunId = qunId;
	}

	public String getQunId(){
		return this.qunId;
	}

	public void setQunNo(String qunNo){
		this.qunNo = qunNo;
	}

	public String getQunNo(){
		return this.qunNo;
	}

	public void setQunName(String qunName){
		this.qunName = qunName;
	}

	public String getQunName(){
		return this.qunName;
	}

	public void setCreateTime(Date createTime){
		this.createTime = createTime;
	}

	public Date getCreateTime(){
		return this.createTime;
	}

	public void setCreateUserId(String createUserId){
		this.createUserId = createUserId;
	}

	public String getCreateUserId(){
		return this.createUserId;
	}

	public void setAvator(String avator){
		this.avator = avator;
	}

	public String getAvator(){
		return this.avator;
	}

	public void setStatus(Integer status){
		this.status = status;
	}

	public Integer getStatus(){
		return this.status;
	}

	public void setDescrption(String descrption){
		this.descrption = descrption;
	}

	public String getDescrption(){
		return this.descrption;
	}

	@Override
	public String toString (){
		return "群ID:"+(qunId == null ? "空" : qunId)+"，群号:"+(qunNo == null ? "空" : qunNo)+"，群名称:"+(qunName == null ? "空" : qunName)+"，创建时间:"+(createTime == null ? "空" : DateUtil.format(createTime, DateTimePatternEnum.YYYY_MM_DD_HH_MM_SS.getPattern()))+"，创建者ID:"+(createUserId == null ? "空" : createUserId)+"，群头像:"+(avator == null ? "空" : avator)+"，群状态:"+(status == null ? "空" : status)+"，群简介:"+(descrption == null ? "空" : descrption);
	}
}
